package Intercepting;

/**
 * @Author:CJJ
 * 创建过滤器管理器
 */
public class FilterManger {
    FilterChain filterChain;

    public FilterManger()
    {
        filterChain = new FilterChain();
        filterChain.addFilter(new AuthenticationFilter());
    }

    public void filterRequest(String request)
    {
        filterChain.execute(request);
    }

    public void setFilterChain(FilterChain filterChain)
    {
        this.filterChain = filterChain;
    }
}
